/**
 * class  UIManager
 * 自定义皮肤管理
 * author haicent
 * email haicent@126.com
 * version 0.01
 */
package as3.component.manager
{
	import flash.utils.Dictionary;
	
	import as3.component.skin.DefaultSkin;
	import as3.component.skin.SkinInfo;
	import as3.component.support.BaseSkin;
	
	public class UIManager
	{
		private static var _comInstance:Dictionary;
		
		//当前皮肤库
		private static var _localSkin:BaseSkin;

		private static var skin:SkinInfo;
		
		public static function set defaultSkin(skin:BaseSkin):void
		{
			_localSkin = null;
			_localSkin = skin;
		}
		
		public static function get defaultSkin():BaseSkin
		{
			if (_localSkin == null) {
				_localSkin = new DefaultSkin();
				skin = new SkinInfo();
			}
			return _localSkin;
		}
	}
}